package com.cpit.qualitycontrol.service;

import com.cpit.platform.common.entity.TableDataQueryCondition;
import com.cpit.platform.common.entity.TableJsonData;
import com.cpit.qualitycontrol.entity.Project;
import com.cpit.qualitycontrol.entity.ProjectOrganization;

import java.util.List;

public interface ProjectService {
    List<Project> findAll();
    List<Project> findByCondition(int page,
                                 int size,
                                 String order,
                                 String orderBy,
                                 String pattern);
    public List<Project> findByCondition(int page,
                                         int size,
                                         String order,
                                         String orderBy,
                                         Long productLineId,  String projectName);
    Project create(Project project) throws Exception;
    Project modify(Project project) throws Exception;
    void delete(Project Project) throws Exception;
    @SuppressWarnings("rawtypes")
    TableJsonData findByConditionJqg(TableDataQueryCondition cond);
    public  Project findById(Long id);

    List<ProjectOrganization> findByOrganizationId(Integer organizationId);
}
